package com.cloud.demo.service;

import com.cloud.demo.config.UserClient;
import com.cloud.demo.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: xhn
 */
@Service
public class UserService {

    @Autowired
    private UserClient userClient;

    public List<User> findAll(){
        return userClient.findAll2();
    }
}
